import java.util.Date;
import java.util.List;

public class Ticket {
    private String id;
    private String showId;
    private Show show;
    private List<String> seatIds;
    private String customerPhone;
    private double price;
    private Date purchaseTime;

    public Ticket(String id, Show show, List<String> seatIds, String customerPhone, double price, Date purchaseTime) {
        this.id = id;
        this.show = show;
        this.showId = show.getId();
        this.seatIds = seatIds;
        this.customerPhone = customerPhone;
        this.price = price;
        this.purchaseTime = purchaseTime;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public String getShowId() {
        return showId;
    }

    public Show getShow() {
        return show;
    }

    public List<String> getSeatIds() {
        return seatIds;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public double getPrice() {
        return price;
    }

    public Date getPurchaseTime() {
        return purchaseTime;
    }
}
